Skip to content

Instantly share code, notes, and snippets.

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

name explain-diff-html
description Use when the user asks for a rich explanation of a code change, diff, branch, or PR. Produces HTML output.

Explain Diff

Please make me a rich, interactive explanation of the specified code change.

It should have these sections:

@iamshreeram
iamshreeram / php-ssl-install.sh
Created December 30, 2018 06:41
Installing SSL certificate in hostinger
# Installation of SSL Certificate
## Enable SSH :
ssh x123011738@31.170.164.22 -p 65002
## Download acme-client
git clone https://github.com/kelunik/acme-client
## Install composer
```
@majd
majd / codex-resets
Created June 27, 2026 10:44
Codex Resets Summary
#!/usr/bin/env python3
import json
import urllib.request
from datetime import datetime, timezone
from pathlib import Path
AUTH = Path("~/.codex/auth.json").expanduser()
URL = "https://chatgpt.com/backend-api/wham/rate-limit-reset-credits"
@iamshreeram
iamshreeram / Nethunter_Nexus9_Guide.md
Last active July 2, 2026 20:20
Install Kali Nethunter in Nexus 9
@iamshreeram
iamshreeram / tomcat-validator.sh
Last active July 2, 2026 20:17
Tomcat validation without Sleep
# Prostart the script
#!/bin/bash
#set -x
enfilevar_setup(){
STATFILE=`echo $CURRHOME/StatusOutput`
OUT=`echo $CURRHOME/today.html`
CONFIG=`echo $CURRHOME/config/app.conf`
@jcubic
jcubic / cdn.md
Last active July 2, 2026 20:14
How to setup a literally free CDN